﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
	Create application
</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
	<% using (Html.BeginForm())
	{ %>
	<div class="pagetitle">
		<h1>
			Register a new application</h1>
	</div>
	<div class="pagecontent">
		<p>
			Use the form below to create a new application.
		</p>
		<%= Html.ValidationSummary("Creation was unsuccessful. Please correct the errors and try again.") %>
		<div>
			<fieldset class="group">
				<legend>Application information</legend>
				<div class="groupcontent">
				<p>
					<label for="name">
						Name:</label>
					<%= Html.TextBox("name") %>
					<%= Html.ValidationMessage("name") %>
				</p>
				<p>
					<label for="shortname">
						Short name: (a-z and 0-9)</label>
					<%= Html.TextBox("shortname") %>
					<%= Html.ValidationMessage("shortname")%>
				</p>
				</div>
				
			</fieldset>
		</div>
	</div>
	<div class="pageactions">
		<input type="submit" value="Create application" />
	</div>
	<% } %>
</asp:Content>
